home *** CD-ROM | disk | FTP | other *** search
/ Animation / Animation Vol.1 (Profi ROM)(1994).iso / pool / updates / symantec / rtlinc.exe / ERRNO.H < prev    next >
C/C++ Source or Header  |  1993-05-19  |  2KB  |  122 lines

  1. /*_ errno.h   October 3, 1990 Modified by Joe Huffman October 3, 1990 */
  2.  
  3. #ifndef __ERRNO_H
  4. #define __ERRNO_H    1
  5.  
  6. #if __cplusplus
  7. extern "C" {
  8. #endif
  9.  
  10. #ifdef __STDC__
  11. #define __CDECL
  12. #define __STDCALL
  13. #else
  14. #define __CDECL __cdecl
  15. #define __STDCALL __stdcall
  16. #endif
  17.  
  18. #if __OS2__ && __INTSIZE == 4
  19. #define __CLIB    __STDCALL
  20. #else
  21. #define __CLIB    __CDECL
  22. #endif
  23.  
  24. #if _MT
  25. extern int * __CLIB _errno(void);
  26. #define errno (*_errno())
  27. #else
  28. extern int __CDECL errno;
  29. #endif
  30.  
  31. #if M_UNIX || M_XENIX
  32. #define EPERM        1
  33. #define ENOENT        2
  34. #define ESRCH        3
  35. #define EINTR        4
  36. #define EIO        5
  37. #define ENXIO        6
  38. #define E2BIG        7
  39. #define ENOEXEC        8
  40. #define EBADF        9
  41. #define ECHILD        10
  42. #define EAGAIN        11
  43. #define ENOMEM        12
  44. #define EACCES        13
  45. #define EFAULT        14
  46. #define ENOTBLK        15
  47. #define EBUSY        16
  48. #define EEXIST        17
  49. #define EXDEV        18
  50. #define ENODEV        19
  51. #define ENOTDIR        20
  52. #define EISDIR        21
  53. #define EINVAL        22
  54. #define ENFILE        23
  55. #define EMFILE        24
  56. #define ENOTTY        25
  57. #define ETXTBSY        26
  58. #define EFBIG        27
  59. #define ENOSPC        28
  60. #define ESPIPE        29
  61. #define EROFS        30
  62. #define EMLINK        31
  63. #define EPIPE        32
  64. #define EDOM        33
  65. #ifndef ERANGE
  66. #define ERANGE        34
  67. #endif
  68. #define ENOMSG        35
  69. #define EIDRM        36
  70. #define ECHRNG        37
  71. #define EL2NSYNC    38
  72. #define EL3HLT        39
  73. #define EL3RST        40
  74. #define ELNRNG        41
  75. #define EUNATCH        42
  76. #define ENOCSI        43
  77. #define EL2HLT        44
  78. #define EDEADLK        45
  79. #define ENOLCK        46
  80.  
  81. /* XENIX error numbers */
  82. #define EUCLEAN        135
  83. #define ENOTNAM        137
  84. #define ENAVAIL        138
  85. #define EISNAM        139
  86. #define EREMOTEIO    140
  87. #define EREMDEV        142
  88. #define ENOTEMPTY    145
  89.  
  90. #else
  91. /* Values for errno corresponding to MS-DOS error numbers:    */
  92.  
  93. #define EPERM        1
  94. #define ENOENT        2
  95. #define ENOTDIR        3
  96. #define EMFILE        4
  97. #define EIO        5
  98. #define EBADF        6
  99. #define ENOMEM        8
  100. #define EACCES        13
  101. #define EINVAL        22
  102. #define ENFILE        23
  103. #define ENOSPC        28
  104. #define EDEADLOCK    36
  105. #define EEXIST        80
  106.  
  107. /* Our own values for errno:  */
  108. #define E2BIG        1000
  109. #define ENOEXEC        1001
  110. #define EDOM        1002
  111. #ifndef ERANGE
  112. #define ERANGE        1003
  113. #endif
  114. #endif /* M_UNIX || M_XENIX */
  115.  
  116. #if __cplusplus
  117. }
  118. #endif
  119.  
  120. #endif /* __ERRNO_H */
  121.  
  122.